<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class PolicyUpload extends Model
{
    //
    use SoftDeletes;
    protected $table = 'policy_upload';
    protected $guarded = [];

    /**
     * 去哪政策详情
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function detail(){

        return $this->hasOne(PolicyUploadQn::class,'policy_upload_id','id');
    }
}
